Looking at ansiblifying the deployment of capi management/workload clusters.
Pretty much followed https://serversforhackers.com/c/letsencrypt-with-haproxy.
haproxy configuration:
# LE frontend
#frontend fe
# bind *:80
# Test URI to see if its a letsencrypt request
#acl letsencrypt-acl path_beg /.well-known/acme-challenge/
#use_backend letsencrypt-backend if letsencrypt-acl
# LE backend
#backend letsencrypt-backend
# server letsencrypt 127.0.0.1:8888
#---------------------------------------------------------------------
# http(s) frontend
#---------------------------------------------------------------------
frontend http-in
bind *:80
bind *:443 ssl crt /etc/ssl/srcdev.skao.int/srcdev.skao.int.pem
acl site_directory hdr_sub(host) -i sited.srcdev.skao.int
use_backend srcdev_sited if site_directory
# Redirect if HTTPS is *not* used
redirect scheme https code 301 if !{ ssl_fc }
acl letsencrypt-acl path_beg /.well-known/acme-challenge/
use_backend letsencrypt-backend if letsencrypt-acl
#---------------------------------------------------------------------
# srcdev_sited backend
#---------------------------------------------------------------------
backend srcdev_sited
mode http
option forwardfor
server srcdev_sited 130.246.213.230:80
After installing certbot, need to request certs for all subdomains by creating a temporary server for acme:
sudo certbot certonly --standalone -d srcnet.skao.int -d srcdev.skao.int -d sited.srcdev.skao.int
--non-interactive --agree-tos --email rob.barnsley@skao.int --expand --http-01-port=8888
Certificate chain is then concatenated, e.g.
sudo cat /etc/letsencrypt/live/srcdev.skao.int/fullchain.pem /etc/letsencrypt/live/srcdev.skao.int/privkey.pem
| sudo tee /etc/ssl/srcdev.skao.int/srcdev.skao.int.pem
The following script can be cronned for renewal:
#!/usr/bin/env bash
# Renew the certificate
certbot renew --force-renewal
# Concatenate new cert files, with less output (avoiding the use tee and its output to stdout)
bash -c "sudo cat /etc/letsencrypt/live/srcdev.skao.int/fullchain.pem /etc/letsencrypt/live/srcdev.skao.int/privkey.pem | sudo tee /etc/ssl/srcdev.skao.int/srcdev.skao.int.pem"
# Reload HAProxy
service haproxy reload
Reading through SRCNet arch doc. Debugging some broken RSEs and informing site managers.
Reading through SRCNet arch doc. Debugging some broken RSEs and informing site managers.
LB working with ingress-nginx and fip (without external access). Waiting on support for bridging subnets.
Progress being made but problems with Ceph being on a different private network.
Looking at deploying capi via Helm. Got it working but needed to assign a FIP to the LB to access the private network that the payload cluster is deployed on.
Looking at deploying capi via manifests (not through helm). Can't get access to the payload cluster from mgmt.
Looking at deploying capi via manifests (not through helm). Can't get access to the payload cluster from mgmt.
Looking at deploying capi.
https://github.com/rucio/rucio/pull/6132 https://github.com/rucio/rucio/pull/6133
Created repo src-site-directory and committed. Made README.
Finished and deployed (src-dev). Overrode some paths on src-proxy (/ and /static/).
Feature planning for PI18.
More refactoring. Added default data. Now at the point of looking at visualisation.